projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d45c26
)
aboutdialog: Disable text undo
author
Matthias Clasen
<mclasen@redhat.com>
Sun, 6 Sep 2020 21:00:43 +0000
(17:00 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Sun, 6 Sep 2020 21:02:00 +0000
(17:02 -0400)
The text buffers here are not editable, so it
does not make sense to have text undo enabled
for them.
Fixes: #3123
gtk/gtkaboutdialog.c
patch
|
blob
|
history
diff --git
a/gtk/gtkaboutdialog.c
b/gtk/gtkaboutdialog.c
index d7dfd985f7e692398f3f4663377ca7e8c6ddb959..f3304fce2ce37c97263eda796380f68d5089a660 100644
(file)
--- a/
gtk/gtkaboutdialog.c
+++ b/
gtk/gtkaboutdialog.c
@@
-2042,6
+2042,8
@@
text_buffer_new (GtkAboutDialog *about,
gtk_text_buffer_get_end_iter (buffer, &end_iter);
gtk_text_buffer_apply_tag (buffer, tag, &start_iter, &end_iter);
+ gtk_text_buffer_set_enable_undo (buffer, FALSE);
+
return buffer;
}